/*
 * Copyright (c) 2019 DawnFramework. All Rights Reserved.
 * Licensed under the MIT (LICENSE) license.
 */
package org.dawn.common.core.mode;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 继承此类后，可以调用 toString 方法通过 Apache lang3 的 ToStringBuilder 打印类的属性
 * @author Willard Hu on 2017/4/25.
 */
public abstract class ToString implements java.io.Serializable {
    private static final long serialVersionUID = 8648259152982950098L;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
